package cn.wolfcode.luowowo.common.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter

public class DestinationSearchQueryObject extends QueryObject {
    private Long ydtId = -1L; //全年适宜
    private Long sdtId = -1L; //季节
    private Long tdtId = -1L; //出行方式
    private Long hdtId = -1L; //节假日
    private Long ddtId = -1L; //天数
    private Long mdtId = -1L; //月

    //private Integer month;

    //根据ddtId获取天数范围
    public TravelCondition getDay(){
        return TravelCondition.TRAVEL_DAYS.get(ddtId.intValue());
    }

    //根据mdtId获取月数范围
    public TravelCondition getMonths(){
        return TravelCondition.TRAVEL_MONTHS.get(hdtId.intValue());
    }

    //根据mdtId获取月份值
    public Integer getMonth(){
        return mdtId.intValue() - 49;
    }
}
